﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.Models.Mapping
{
    public class FinanceNumMap : EntityTypeConfiguration<FinanceNum>
    {
        public FinanceNumMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);
           
            this.Property(t => t.FinanceNumber)
                .HasMaxLength(256);

            this.ToTable("FinanceNum");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Type).HasColumnName("Type");
            this.Property(t => t.Status).HasColumnName("Status");
            this.Property(t => t.OtherId).HasColumnName("OtherId");
            this.Property(t => t.FinanceNumber).HasColumnName("FinanceNumber");
        }
    }
}
